<div class="panel panel-box">
    <div class="panel-heading">
        <div class="titleimage">
            <h3 class="panel-title panel-title-font">
                <?php echo yii::t('models/News','Center News')?>
                <a href="<?php echo yii::app()->baseUrl.'/display/centernews'?>"><span class="pull-right fontcolor">+更多</span></a>
            </h3>
        </div>
    </div>
    <div class="panel-body" style="padding:5px 25px 0px 25px;height:130px;overflow:hidden;">
    <h4>
        <?php echo CHtml::link(CHtml::encode($this->headlines[0]->title),
            array('display/news/'.$this->headlines[0]->news_id),
            array('style'=>'color:#A00'));?>
    </h4>
    <p>
        <?php 
        $content = strip_tags($this->headlines[0]->content);
        if (mb_strlen($content, 'utf-8') > 200)
        {
            echo mb_substr($content, 0, 200, 'utf-8') . "... ";
        }
        else
        {
            echo $content;
        }
                ?>
    </p>
    </div>
    <table class="table">
<!--        <thead>
            <tr>
                <td class="text-center"><strong>#ID</strong></td>
                <td class="text-center"><strong><?php echo yii::t('other/Site','Title')?></strong></td>
                <td class="text-center"><strong><?php echo yii::t('other/Site','Published Date')?></strong></td>
            </tr>
        </thead>-->
        <tbody>
        <?php for($i = 0;$i < ((count($this->newsModel) > $this->countLimit) ? $this->countLimit : count($this->newsModel));$i++):?>
        <tr>
            <!--<td class='text-center'><?php echo $i+1;?></td>-->
            <td>
                <span class="glyphicon glyphicon-play" style="font-size: 11px;"></span>
                <a href="<?php echo yii::app()->baseUrl.'/display/news/'.$this->newsModel[$i]->news_id?>">
                    <?php echo CHtml::encode($this->newsModel[$i]->title);?>
                </a>
            </td>
            <td class="text-center">
                <!--<span class="glyphicon glyphicon-edit"></span>-->
                [<?php echo date('Y-m-d',strtotime($this->newsModel[$i]->published_date));?>]
            </td>
        </tr>
        <?php endfor;?>
        </tbody>
    </table>
</div>
